pull: Add a --dry-run option for static deltas
authorColin Walters <walters@verbum.org>
Fri, 19 Feb 2016 17:28:07 +0000 (12:28 -0500)
committerColin Walters <walters@verbum.org>
Fri, 19 Feb 2016 20:21:13 +0000 (15:21 -0500)
commit4beb5f4eaf619f1c47762bb872099e24f3efe2f0
tree968045449df23d627f42b22a48e858a1343669de
parentf2c5ecb996c9169e1e9dadbbc55825b41993a9b2
pull: Add a --dry-run option for static deltas

One of the design goals with deltas was not just wire efficiency,
but also having all the data up front about how much data would
be transferred before starting.

Let's expose that better by adding a `dry-run` option to the pull API.
This requires static deltas to be useful.  Basically we simply call
the progress callback once with the data from the superblock.
src/libostree/ostree-repo-pull.c
src/ostree/ot-builtin-pull.c
tests/pull-test.sh